package com.homework.HomeAcount.service;

import java.util.List;
import java.util.Map;

import com.homework.HomeAcount.entity.User;

public interface UserService {

	public User getUserInfo(User user);
	
	public User findUserByUserName(String userName);
	
	/**
	 * 加载当前用户信息
	 * @param map
	 * @return
	 */
	public List<User> loadUserList(Map<String, Object> map);
	
	/**
	 * 加载当前用户信息的记录数
	 * @param map
	 * @return
	 */
	public int getUserListSize(Map<String, Object> map);
	
	/**
	 * 根据用户主键获取用户信息
	 * @param id
	 * @return
	 */
	public User loadUserInfoById(String id);
	
	/**
	 * 用户新增
	 * @param user
	 */
	public void addUser(User user) throws Exception;
	
	/**
	 * 用户修改
	 * @param user
	 * @throws Exception
	 */
	public void updateUser(User user) throws Exception;
	
	/**
	 * 用户修改
	 * @param user
	 * @throws Exception
	 */
	public void deleteUser(String id) throws Exception;
}
